﻿using System;
using System.Linq;
using System.IO;
using System.IO.IsolatedStorage;
using System.Collections.Generic;
using Microsoft.LightSwitch;
using Microsoft.LightSwitch.Framework.Client;
using Microsoft.LightSwitch.Presentation;
namespace EmployeeManager
{
    public partial class Timesheet
    {
        partial void TimesheetEntryCollection_Changed(System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
        {
            if (e.Action == System.Collections.Specialized.NotifyCollectionChangedAction.Add)
            {
                foreach (TimesheetEntry entry in e.NewItems)
                {
                    entry.Worker = this.DataWorkspace.ApplicationData.LoggedInWorker();
                }
            }
        }
    }
}
